<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="utf-8"/>
    <title>广场</title>
    <link rel="stylesheet" type="text/css" href="css/font1.css" th:href="@{/assets/css/font1.css}"/>
    <link rel="stylesheet" type="text/css" href="css/center.css" th:href="@{/assets/css/center.css}"/>
    <link rel="stylesheet" type="text/css" href="css/dpz.css" th:href="@{/assets/css/dpz.css}"/>
    <link rel="stylesheet" type="text/css" href="css/bootstrap.min.css" th:href="@{/assets/css/bootstrap.min.css}">
    <script src="js/jquery.min.js" th:src="@{/assets/js/jquery.min.js}"></script>
    <script src="js/bootstrap.min.js" th:src="@{/assets/js/bootstrap.min.js}"></script>
    <style>
        body {
            background-color: #e9f0f5;
            font-family: "宋体";
            font-size: medium;
        }

        #center {
            align-content: center;
        }

        #myself {
            background-color: white;
            width: 20%;
            position: fixed;
            left: 18%;
            top: 20%;
            padding-bottom: 20px;
            box-shadow: 10px 10px 5px #888888;
        }

        #other {
            width: 40%;
            float: right;
            margin-right: 18%;
            margin-top: 10%;
        }

        #touxiang {
            width: 100px;
            height: 100px;
            background: #7fee1d;
            -moz-border-radius: 50px;
            -webkit-border-radius: 50px;
            border-radius: 50px;
        }

        .touxiang1 {
            width: 50px;
            height: 50px;
            background: #7fee1d;
            -moz-border-radius: 25px;
            -webkit-border-radius: 25px;
            border-radius: 25px;
        }

        #choose > span {
            width: 100%;
            margin: 0;
            display: block;
        }

        #choose > a {
            text-decoration: none;
            color: black;
            display: block;
            line-height: 40px;
        }

        #choose > a:hover {
            background-color: darkgray;
        }

        #write {
            background-color: white;
            border: 1px solid #BABABA;
            padding-bottom: 10px;
        }

        .blog {
            background-color: white;
            border: 1px solid #BABABA;
            padding-top: 10px;
            padding-bottom: 10px;
            margin-top: 10px;
        }

        #t1 {
            position: absolute;
            top: 2px;
            left: 10px;
        }

        #t2 {
            position: absolute;
            top: 5px;
            left: 70px;
        }

        .b > img {
            width: 20%;
            margin-left: 40px;
        }

        .btn > span {
            width: 100%;
            margin: 0;
            display: block;

        }

        .btn > a {
            text-decoration: none;
            color: black;
            display: block;
            line-height: 40px;
        }

        .btn > a:hover {
            background-color: darkgray;
        }

        #myModal {
            margin-top: 300px;
        }

        .modal-body {
            margin-left:45px;
        }

        .modal-body input {
            height: 35px;
            text-align: center;
        }

        #qq {
            /*宽*/
            height: 200px;
            /*高*/
            background: #fff;
            /*背景颜色*/
            margin: auto;

            background-color: white;
            border: 1px solid #BABABA;
            padding-top: 10px;
            padding-bottom: 10px;
            margin-top: 10px;
        }

        #qq p {
            font-size: 12px;
            color: #666;
            font-family: "微软雅黑";
            line-height: 45px;
            text-indent: 20px;
        }

        #qq .message {
            text-align: left;
            max-width: 98%;
            height: 72px;
            margin: 0 auto;
            overflow: hidden;
            outline: none;
            border-radius: 5px;
            border: 1px solid rgba(0, 0, 0, 0.5);
            padding: 5px;
            box-sizing: border-box;
            font-size: 14px;
            -webkit-background-clip: text;
            color: black;
            margin: 5px 4px;
            /*粗细 风格 颜色*/
        }

        #qq .But {
            width: 100%;
            height: 35px;
            margin: 15px auto 0px;
            position: relative;
            /*相对，参考对象*/
        }

        #qq .But img.bq {
            margin-left: 6px;
            float: left;
            /*左浮动*/
        }

        #qq .But span.submit {
            margin-right: 6px;
            width: 80px;
            height: 30px;
            background: #ff8140;
            display: block;
            float: right;
            /*右浮动*/
            line-height: 30px;
            border-radius: 5px;
            cursor: pointer;
            /*手指*/
            color: #fff;
            font-size: 12px;
            text-align: center;
            font-family: "微软雅黑";
        }

        /*face begin*/
        #qq .But .face {
            width: 440px;
            background: #fff;
            border: 1px solid #ddd;
            box-shadow: 0 0 12px #666;
            position: absolute;
            /*绝对定位*/
            top: 21px;
            left: 15px;
            display: none;
            /*隐藏*/
        }

        #qq .But .face ul {
            width: 100%;
            height: 100%;
            display: flex;
            flex-wrap: wrap;
            padding: 8px;
            box-sizing: border-box;
        }

        #qq .But .face ul li {
            width: 30px;
            height: 30px;
            list-style-type: none;
            cursor: pointer;
            display: flex;
            justify-content: center;
            align-items: center;
        }

        /*msgCon begin*/
        .msgCon {
            width: 100%;
            margin: 0px auto;
            margin-bottom: 60px;
        }

        .msgCon .msgBox {
            background: #fff;
            padding: 10px;
            box-sizing: border-box;
            margin-top: 16px;
            border-radius: 4px;
        }

        .msgCon .msgBox .headUrl {
            width: 100%;
            height: 60px;
            border-bottom: 1px dotted #ddd;
            display: flex;
            align-items: center;
        }

        .msgCon .msgBox .headUrl img {
            width: 50px;
            height: 50px;
            background: #7fee1d;
            -moz-border-radius: 25px;
            -webkit-border-radius: 25px;
            border-radius: 25px;
        }

        .msgCon .msgBox .headUrl div {
            text-align: left;
            flex: 1;
            display: flex;
            flex-flow: column;
            font-size: 16px;
            margin-left: 16px;
            -webkit-background-clip: text;
            color: transparent;
            background-image: linear-gradient(to top, #b224ef 0%, #7579ff 100%);
        }

        .msgCon .msgBox .headUrl div .time {
            font-size: 14px;
            margin-top: 6px;
            -webkit-background-clip: text;
            color: transparent;
            background-image: linear-gradient(to right, #74ebd5 0%, #9face6 100%);
        }

        .msgCon .msgBox .headUrl a {
            font-size: 14px;
            padding: 10px;
            color: salmon;
            cursor: pointer;
        }

        .msgCon .msgBox .msgTxt {
            text-align: left;
            font-size: 14px;
            color: #666;
            min-height: 40px;
            line-height: 24px;
            padding: 10px;
            box-sizing: border-box;
            word-wrap: break-word;
            -webkit-background-clip: text;
            color: transparent;
            background-image: linear-gradient(to right, #778899 0%, #333 100%);
        }

        .cs {
            color: red;
        }

        .lili {
            cursor: pointer;
        }
        .submit{
            background-color: #e9f0f5;
            border 0px solid #e9f0f5;
            width:100px;
            height: 35px;
            margin-bottom: 15px;
        }
    </style>
</head>
<body>
<div class="daohang">
    <div class="daohang1">
        <div class="daohang2">
            <div class="zhu">
                <a class="logo"
                   href="http://127.0.0.1:8020/%E4%B8%AA%E4%BA%BA%E4%B8%AD%E5%BF%83/index.html?__hbt=1570514532167"
                   title="Zspace">Zspace</a>
                <ul class="lala">
                    <li class="list" id="a1">
                        <div class="qwe">
                            <a class="buhao"
                               href="http://127.0.0.1:8020/%E4%B8%AA%E4%BA%BA%E4%B8%AD%E5%BF%83/index.html?__hbt=1570514532167">
                                <i class="iconfont icon-ren"></i>
                                <a href="mine.html" th:href="@{/mine}"><span>
											个人中心
										</span></a>
                            </a>
                        </div>
                    </li>
                    <li class="list" id="a2">
                        <div class="qwe2">
                            <a class="hao" href="">
                                <i class="iconfont icon-fangzi"></i>
                                <span>
											我的主页
										</span>
                                <i class="iconfont icon-down"></i>
                            </a>
                            <div class="qwe-cont">

                            </div>
                        </div>

                    </li>
                    <li class="list" id="a3">
                        <div class="qwe3">
                            <a class="hao" href="">
                                <i class="iconfont icon-ren3 "></i>
                                <span>
											好友
										</span>
                                <i class="iconfont icon-down"></i>
                            </a>
                            <div class="qwe-cont">

                            </div>
                        </div>
                    </li>
                    <li class="list" id="a4">
                        <div class="qwe4">
                            <a class="hao" href="">
                                <i class="iconfont icon-youxi "></i>
                                <span>
											游戏
										</span>
                                <i class="iconfont icon-down"></i>
                            </a>
                            <div class="qwe-cont">

                            </div>
                        </div>
                    </li>
                    <li class="list" id="a5">
                        <div class="qwe5">
                            <a class="hao" href="">
                                <i class="iconfont icon-yifu "></i>
                                <span>
											装扮
										</span>
                                <i class="iconfont icon-down"></i>
                            </a>
                            <div class="qwe-cont">

                            </div>
                        </div>
                    </li>
                </ul>
            </div>
            <div class="yonghu">
                <a class="home" href="">
                    <img class="tu" th:src="@{${session.user.userimg}}" alt="头像">
                    <span class="name textoverflow" th:text="${session.user.username}"></span>
                </a>
                <a class="tuichu" href="javascript:" title="退出">
                    <i class="iconfont icon-tuichu"></i>
                </a>
                <div class="shezhi">
                    <i class="iconfont icon-shezhi"></i>
                    <ul class="caidan">
                        <li><a href="">修改资料</a></li>
                        <li><a href="">主页排版</a></li>
                        <li><a href="">空间设置</a></li>
                        <li><a href="">权限设置</a></li>
                    </ul>
                </div>
                <div class="kuai">
                    <a class="huangzuan" href="http://127.0.0.1:8020/%E6%94%AF%E4%BB%98/index.html?__hbt=1570539200450"
                       target="_blank" title="点击到支付中心续费">
                        <i class="iconfont icon-chuangxiangzhizunvip"></i>
                    </a>
                    <ul class="vipcai">
                        <li><a href="">升级年费</a></li>
                        <li><a href="">向好友索取</a></li>
                        <li><a href="">赠送给好友</a></li>
                        <li><a href="">vip官网</a></li>
                    </ul>
                </div>
            </div>
        </div>
    </div>
</div>
</div>

<div id="center" align="center">
    <div id="myself" class="content">
        <br/><br/></br?><img id="touxiang" th:src="@{${session.user.userimg}}"/><br/><br/>
        <p name="us" id="us" th:text="${session.user.username}">|link:123456</p>
        <p><span th:text="${session.user.sex}"></span>|<span th:text="${session.user.adress}"></span>|<span
                th:text="${session.user.birth}"></span></p><br/>
        <span th:text="${session.user.graph}"></span><br/><br/>

        <button class="btn" data-toggle="modal" data-target="#myModal"
                style=" border: 0px solid white;  background-color: white;color: black;width: 100%;font-size: 17px;">
            <a><span>修改资料></span></a>
        </button>
        <br/>

        <div id="choose">
            <a href="" th:href="@{/photo}" target="_blank"><span>我的相册></span></a>
            <a href="" th:href="@{/mine.html}" target="_blank"><span>个人中心></span></a>
            <a href=""><span>游戏中心></span></a>

        </div>
    </div>

    <div id="other" class="content">
<!--        <form th:action="@{/w_content}" method="post">-->
<!--            <input class="message" contenteditable="true" name="con">-->
<!--            &lt;!&ndash;                    <input type="text" name="w_content"> &ndash;&gt;-->
<!--            <br></input>-->
<!--            <div class="But">-->
<!--                <img class="bq" src="images/bba_thumb.gif">-->
<!--                <input class="submit" type="submit">发表</input>-->
<!--                &lt;!&ndash;face begin&ndash;&gt;-->
<!--            </div>-->
<!--        </form>-->
        <div id="" style="margin-top: 2%;">

            <div id="qq" >
<!--                <form th:action="@{/w_content}">-->
<!--                    <input class="message" contenteditable="true" name="con">-->
<!--                    &lt;!&ndash;                    <input type="text" name="w_content"> &ndash;&gt;-->
<!--                    <br></input>-->
<!--                    <div class="But">-->
<!--                        <img class="bq" src="images/bba_thumb.gif">-->
<!--                        <span class="submit" type="submit">发表</span>-->
<!--                        &lt;!&ndash;face begin&ndash;&gt;-->
<!--                    </div>-->
<!--                </form>-->
                <form th:action="@{/w_content}" method="post">
<!--                    <input class="message" contenteditable="true" name="con" style="width: 100%;margin-top: 0px">-->
                    <textarea name="con" rows="5" style="width: 99%;margin-top: 0px" required placeholder="说点什么吧！"></textarea>
                    <!--                    <input type="text" name="w_content"> -->
                    <br></input>
                    <div class="But">
                        <input class="submit" type="submit" value="提交"></input>
                        <!--face begin-->
                    </div>
                </form>
                <div id="" style="margin-top: 2%;">

                </div>
            </div>
            <div class="msgCon">
                <div class="msgBox" th:each=" item : ${session.getcontent}">
                    <div class="headUrl">
                        <img width="50" height="50" src="images/tx.jpg" th:src="@{${session.user.userimg}}">
                        <div>
                            <span class="title" th:text="${session.user.username}"></span>
                            <span class="time" th:text="${item.r_time}">2019-10-07</span>
                        </div>
                        <a class="del">删除</a>
                    </div>
                    <div class="msgTxt" th:text="${item.content}">
                        测试文本
                    </div>
                </div>
            </div>


            </div>

            <!--qq end-->
            <!--msgCon begin-->
            <div class="msgCon"></div>
            <script typet="text/javascript" src="http://libs.baidu.com/jquery/1.9.1/jquery.min.js"></script>
            <script>
                $(function () {
                    $(".icon-dianzan").click(function () {
                        $(this).toggleClass('cs');
                    })
                })
            </script>

            <script type="text/javascript" src="assets/js/jquery-1.7.min.js"></script>

            <!-- 模态框（Modal） -->
            <div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel"
                 aria-hidden="true">
                <div class="modal-dialog">
                    <div class="modal-content">
                        <div class="modal-header">
                            <button type="button" class="close" data-dismiss="modal" aria-hidden="true">
                                &times;
                            </button>
                            <h4 class="modal-title" id="myModalLabel">
                                您好,请修改您的个人信息
                            </h4>
                        </div>
                        <div class="modal-body">

                            <form name='form' class="form" th:action="@{/revise}" method='post'
                                  onsubmit="return click1()">

                                <p><input type="text" placeholder="sex" name='sex'><br/></p>
                                <p><input type="text" placeholder="birth" name='birth'><br></p>
                                <p></p><input type="text" placeholder="adress" name='adress'><br/></p>
                                <p></p><input type="text" placeholder="graph" name='graph'> <br/></p>

                                <div class="modal-footer">
                                    <button type="button" class="btn btn-default" data-dismiss="modal">关闭
                                    </button>
                                    <button type="submit" name="submit" value="submit" class="btn btn-primary">
                                        提交更改
                                    </button>
                                </div>
                            </form>
                        </div>
                    </div><!-- /.modal-content -->
                </div><!-- /.modal -->
            </div>
        </div>
    </div>
</body>
</html>
